﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Task.Add" %>

<!doctype html>
<html>
<head runat="server">
    <title>添加任务</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <style type="text/css">
        .RowTitle {
            width: 200px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <table style="width: 100%;" id="Tab1" class="TabelGrid">
            <tr>
                <td class="RowTitle">任务别名：
                        </td>
                <td>
                    <asp:TextBox ID="txtTaskName" runat="server" Width="250px"></asp:TextBox><asp:RequiredFieldValidator
                        ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入任务别名" ControlToValidate="txtTaskName"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="RowTitle">任务状态：
                        </td>
                <td>
                    <asp:RadioButtonList ID="rblIsUsed" runat="server" RepeatDirection="Horizontal"
                        RepeatLayout="Flow">
                        <asp:ListItem Selected="True" Value="True">正常</asp:ListItem>
                        <asp:ListItem Value="False">停用</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="RowTitle">插件DLL：
                        </td>
                <td>
                    <asp:TextBox ID="txtDLLName" runat="server" Width="250px"></asp:TextBox>
                    &nbsp;区分大小写
                       
                   

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtDLLName"
                        ErrorMessage="请输入"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="RowTitle">插件方法名称：
                        </td>
                <td>
                    <asp:TextBox ID="txtFullCategoryName" runat="server" Width="250px"></asp:TextBox>
                    &nbsp;区分大小写
                       
                   

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtFullCategoryName"
                        ErrorMessage="请输入"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="RowTitle">插件命令行：</td>
                <td>
                    <asp:TextBox ID="txtCommandLine" runat="server" Width="250px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="RowTitle">激活类型：
                        </td>
                <td>
                    <asp:RadioButtonList ID="rblTaskActive" runat="server" RepeatLayout="Flow" OnSelectedIndexChanged="RBL_TaskActive_SelectedIndexChanged"
                        AutoPostBack="True">
                        <asp:ListItem Value="1">一次</asp:ListItem>
                        <asp:ListItem Value="2">重复</asp:ListItem>
                        <asp:ListItem Value="3">每日</asp:ListItem>
                        <asp:ListItem Value="4" Selected="True">每周</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="RowTitle">激活条件：
                        </td>
                <td>
                    <asp:Panel ID="Panel1" runat="server" Visible="False">
                        执行日期：<asp:TextBox ID="txtRunDate" runat="server"></asp:TextBox>
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Admin/Images/Calendar_scheduleHS.png" />
                        <ajaxtoolkit:calendarextender id="CalendarExtender1" runat="server" popupbuttonid="Image1"
                            targetcontrolid="txtRunDate">
                        </ajaxtoolkit:calendarextender>
                        <br />
                        执行时间：<asp:TextBox ID="txtRunTime" runat="server">06:00:00</asp:TextBox>
                        格式 23:59:00
                           
                   
                    </asp:Panel>
                    <asp:Panel ID="Panel2" runat="server" Visible="False">
                        间隔时间（分）：<asp:TextBox ID="txtIntervalMinute" runat="server" Width="39px">60</asp:TextBox>
                    </asp:Panel>
                    <asp:Panel ID="Panel3" runat="server" Visible="False">
                        执行时间：<asp:TextBox ID="txtRunTime2" runat="server">06:00:00</asp:TextBox>
                        格式 23:59:00
                           
                   
                    </asp:Panel>
                    <asp:Panel ID="Panel4" runat="server" Visible="True">
                        <asp:RadioButtonList ID="RBL_Week" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="1">星期一</asp:ListItem>
                            <asp:ListItem Value="2">星期二</asp:ListItem>
                            <asp:ListItem Value="3">星期三</asp:ListItem>
                            <asp:ListItem Value="4">星期四</asp:ListItem>
                            <asp:ListItem Value="5">星期五</asp:ListItem>
                            <asp:ListItem Value="6">星期六</asp:ListItem>
                            <asp:ListItem Value="7" Selected="True">星期天</asp:ListItem>
                        </asp:RadioButtonList>
                        执行时间：<asp:TextBox ID="txtRunTime3" runat="server">06:00:00</asp:TextBox>
                        格式 23:59:00
                           
                   
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="RowTitle">如何处理未执行任务：
                        </td>
                <td>
                    <asp:RadioButtonList ID="rblUnexecuteType" runat="server" RepeatLayout="Flow">
                        <asp:ListItem Value="1" Selected="True">延至下次预定时间</asp:ListItem>
                        <asp:ListItem Value="2">尽快执行</asp:ListItem>
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请选择“如何处理未执行任务”"
                        ControlToValidate="rblUnexecuteType"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center;">&nbsp; &nbsp;
                       
                   

                    <asp:Button ID="btnOK" runat="server" CssClass="btn btn-default" Text="确定" OnClick="btnOK_Click" />
                </td>
            </tr>
        </table>

    </form>
</body>
</html>
